package main

import (
	"fmt"
	"math/rand"
)

var names = []string{"Space Adventures", "SpaceX", "Virgin Galactic"}
var types = []string{"Round-trip", "One-way"}

func main() {
	fmt.Println("SpaceLine         Days    Trip type  Price")
	fmt.Println("==========================================")

	for count := 10; count > 0; count-- {
		name := names[rand.Intn(3)]
		days := 63100000 / ((rand.Intn(15) + 16) * 24 * 60 * 60)
		tripType := types[rand.Intn(2)]
		price := rand.Intn(15) + 36

		fmt.Printf("%-18v%-8v%-11v$%4v\n", name, days, tripType, price)
	}
}
